package net.hn.hnms.biz.safety.location.group.domain.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

@Data
@ApiModel("apiResponse-api返回数据")
public class RailwayLoadData<T> {
    @JsonProperty("records")
    private String records;

    @JsonProperty("pageNo")
    private int pageNo;

    @JsonProperty("pageSize")
    private int pageSize;

    @JsonProperty("message")
    private String message;

    @JsonProperty("content")
    private T[] content;

    @JsonProperty("successFlag")
    private boolean successFlag;


    @Data
    public static class YearData {
        @JsonProperty("yeartime")
        private String yearTime;

        @JsonProperty("realweight")
        private String realWeight;

    }
    @Data
    public static class LastMonthData {
        @JsonProperty("monthtime")
        private String monthTime;

        @JsonProperty("sum")
        private String sum;

    }
}